Given /^I see the project bar$/ do
  @flex.panel(:id => 'projectsView').visible?.should == true
end

Given /^I have selected (.*) as the current project$/ do |project|
  @flex.list({:id => 'projectlist'}).select(project)
end

When /^I click on (.*) to create a new project$/ do |label|
  @flex.panel(:id => "projectsView").button(:automationName => label).click()
end

When /^enter (.*) as the project's (.*)$/ do |text, field|
  @flex.panel(:id => 'projectsView').text_area(:id => field).input(text)
end

When /^I choose to (.*) the project$/ do |id|
  @flex.panel(:id => 'projectsView').button(:id => id).click
end

Then /^I should see (.*) in the (.*)$/ do |item, list|
  @flex.list(:id => list).values(0,0).should == [[item]]
end
